package pro.shushi.pamirs.hr.api.tmodel;

import pro.shushi.pamirs.boot.base.ux.annotation.field.UxWidget;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxDetail;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxForm;
import pro.shushi.pamirs.hr.api.enums.BooleanConstantEnum;
import pro.shushi.pamirs.hr.api.enums.eam.*;
import pro.shushi.pamirs.hr.api.model.eam.EamUkDtPlaneness;
import pro.shushi.pamirs.hr.api.model.eam.EamUkDtTension;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.TransientModel;

import java.math.BigDecimal;
import java.util.List;

@Model.model(EamUkDtMtoolReq.MODEL_MODEL)
@Model(displayName = "工装保养项明细参数",summary = "工装保养项明细")
public class EamUkDtMtoolReq extends TransientModel {

    public static final String MODEL_MODEL = "hr.simple.EamUkDtMtoolReq";


    @Field(displayName = "组织编码", invisible = true)
    private String orgCode;

    @Field(displayName = "保养单编码", invisible = true)
    public String ukCode;

    @Field.Integer
    @Field(displayName = "序号",  invisible = true)
    public Integer seq;

    @Field.Enum(size='4')
    @Field(displayName = "保养类型",  required = true,priority = 3L)
    public UkCycTypeEnum ukCycType;

    @Field.Enum(size='4')
    @Field(displayName = "保养项类型", required = true)
    public MtoolPjTypeEnum pjType;

    @Field.String(size = 512)
    @Field(displayName = "实测值")
    private String rvalue;

    @Field.Enum(size='4')
    @Field(displayName = "质量状态", required = true)
    public UkDevStatEnum ukDevStat;

    @Field.String(size = 512)
    @Field(displayName = "不符合项内容")
    private String ukNgCtt;

    @Field.String(size = 512)
    @Field(displayName = "纠正措施")
    private String ukNgMtd;

    @Field.Integer
    @Field(displayName = "用时（分钟）", required = true, defaultValue = "0")
    public Integer ukDpart;

    @Field.Text
    @Field(displayName = "备注")
    private String remark;


    @Field(displayName = "钢网保养张力明细")
    private List<EamUkDtTension> eamUkDtTensionList;


    @Field(displayName = "刮刀保养平整度明细")
    private List<EamUkDtPlaneness> eamUkDtPlanenessList;

}